<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>tpl5</title>
<script src="js/vue.min.js"></script>
</head>
<body>
<div id="app">
    <p v-if="seen">现在你看到我了</p>
    <template v-if="ok">
      <h1>l</h1>
      <p>z</p>
    </template>
</div>
    
<script>
new Vue({
  el: '#app',
  data: {
    seen: true,
    ok: true
  }
})
</script>
</body>
</html>